<fieldset class="layui-elem-field">
    <legend>添加会员</legend>
    <div class="layui-field-box">
        <form action="{:url('Member/addmember')}" class="layui-form ajax-form" method="post"
              style="margin: 20px">
            <div class="layui-row">
                <div class="layui-col-md6">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">会员名称</label>
                            <div class="layui-input-inline">
                                <input type="text" name="member_name" placeholder="请输入名称" value="" maxlength="20"
                                       autocomplete="off" class="layui-input" lay-verify="required">
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">身份证号</label>
                            <div class="layui-input-inline">
                                <input type="text" name="member_card" placeholder="请输入身份证号" value="" maxlength="20"
                                       autocomplete="off" class="layui-input" lay-verify="required">
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">电话</label>
                            <div class="layui-input-inline">
                                <input type="text" name="member_tel" placeholder="请输入电话" value="" maxlength="20"
                                       autocomplete="off" class="layui-input" lay-verify="required">
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">性别</label>
                        <div class="layui-input-inline">
                            <select name="member_sex" lay-filter="aihao" lay-verify="required">
                                <option value="1">男</option>
                                <option value="2">女</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">单位部门</label>
                            <div class="layui-inline">
                                <div class="layui-input-inline">
                                    <select name="company_id" data-url="{:url('common/wherelist')}" lay-filter="where"
                                            lay-verify="required">
                                        <option value="">请选择单位</option>
                                        {volist name='company' id='c'}
                                        <option value="{$c.company_id}" >{$c.company_name}</option>
                                        {/volist}
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <div class="layui-input-inline">
                                    <select name="department_id" data-url="{:url('common/wherelist')}" lay-filter="twhere" class="twhere" lay-verify="required">
                                        <option value="">请选择部门</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item ">
                <label class="layui-form-label"> </label>
                <button class="layui-btn" lay-submit="">确定</button>
                <a class="layui-btn  layui-btn-primary" href="{:url('Member/member')}">返回</a>
            </div>
        </form>
    </div>
</fieldset>

